package com.nfit.shopadmin.service;

import com.nfit.shopmodel.dto.address.AddressDto;
import com.nfit.shopmodel.vo.address.AddressVo;

import java.util.List;

/**
 * ClassName:AddressService
 * Package:com.nfit.shopadmin.service
 * Description
 *
 * @Author L
 * @Create 2024/12/29 1:48
 */
public interface AddressService {
    /**
     * 根据userId查询地址列表
     */
    List<AddressVo> findByUserId(Long userId);

    /**
     * 根据ID查询地址详情信息
     */
    AddressVo findById(Long id);

    void update(AddressDto addressDto,Long id);

    void save(AddressDto addressDto);

    void delete(Long id);
}
